import { createStore } from "vuex";

//创建一个新的store实例
const store = createStore({
    state(){
        return{
            // name:'',
            // age:'',
            // phone:''
            userInfo:{ }
        }
    },
    mutations:{
        updateUserInfo(state,userInfo){
            console.log('userInfo',userInfo);
            state.userInfo=userInfo 
        }
    }
})

export default store